<html>

<head>
    <title>盒模型</title>

    <style>
        body {
            background: radial-gradient(#f69d3c, #3f87a6);
        }
        nav {
            border: 10px double lightblue;
        }

        .link-list {
            display: flex;
            list-style: none;
        }

        .link-list a {
            background-color: rgb(143, 105, 113);
            height: 100px;
            padding: 1.5em 2em;
            margin-right: 0.5em;
            text-decoration: none;
            color: #fff;
        }

        .link-list a:hover {
            background-color: rgb(60, 43, 46);
        }

        p {
            border: 1px solid black;
            padding: 1em 2em;
        }
        span {
            border: 1px solid lightcoral;
            width: 20px;
            height: 10px;
            padding: 1em 2em;
            /* display: inline-block; */
        }

        .box {
            border: 5px solid #041d47;
            width: 400px;
            background-color: #09337c;
            color: #fff;
            padding: 1em 2em;
            border-radius: 1em;
            border-top-left-radius: 10% 30%;
        }
        .box h2 {
            border-top: 2px dotted rgb(244, 185, 142);
            border-bottom: 1em double #0c5712;
            padding: 10px 0;
        }
        .box p {
            border: 0;
            padding: 0;
        }
    </style>
</head>

<body>
    <nav>
        <ul class="link-list">
            <li><a href="index.html">Link One</a></li>
            <li><a href="index.html">Link Two</a></li>
            <li><a href="index.html">Link Three</a></li>
        </ul>
    </nav>
    <p>
        I am a paragraph and this is a <span>span</span> inside that paragraph. A span is an inline element and so does not respect width and height.
    </p>

    <div class="box">
        <h2>Borders</h2>
        <p>Try change the styles</p>
    </div>
</body>

</html>